Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.platform.TemplateSources.actions--filters

This contribution is part of XML component org.nuxeo.platform.TemplateSources.actions inside nuxeo-template-rendering-web-5.8.jar

Extension Point

Extension point filters of component ActionService.

Contributed Items

  • <filter id="is_creating_template">
          <rule grant="true">
            <condition>#{changeableDocument.type == 'TemplateSource'}</condition>
          </rule>
        </filter>
  • <filter id="is_creating_template_instance">
          <rule grant="true">
            <condition>#{changeableDocument.hasFacet('TemplateBased')}</condition>
          </rule>
        </filter>
  • <filter id="is_not_creating_template">
          <rule grant="false">
            <condition>#{changeableDocument.type == 'TemplateSource'}</condition>
          </rule>
          <rule grant="false">
            <condition>#{changeableDocument.hasFacet('TemplateBased')}</condition>
          </rule>
        </filter>

XML Source

<extension point="filters" target="org.nuxeo.ecm.platform.actions.ActionService">

    <filter id="is_creating_template">
      <rule grant="true">
        <condition>#{changeableDocument.type == 'TemplateSource'}</condition>
      </rule>
    </filter>

    <filter id="is_creating_template_instance">
      <rule grant="true">
        <condition>#{changeableDocument.hasFacet('TemplateBased')}</condition>
      </rule>
    </filter>

    <filter id="is_not_creating_template">
      <rule grant="false">
        <condition>#{changeableDocument.type == 'TemplateSource'}</condition>
      </rule>
      <rule grant="false">
        <condition>#{changeableDocument.hasFacet('TemplateBased')}</condition>
      </rule>
    </filter>

  </extension>